import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import store from "@/store";
import router from "./router";
import TreeTable from "vue-table-with-tree-grid";
import moment from "moment";
import "@/assets/css/global.css";
import "@/permission";
import { Steps, Step } from "element-ui";
import VueQuillEditor from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";

//全局注册富文本组件
Vue.use(VueQuillEditor);
Vue.use(Step);
Vue.use(Steps);
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.component("tree-table", TreeTable);
Vue.filter("FormatDateTime", function () {
  return moment().format("YYYY-MM-DD HH:mm:ss");
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
